Prefix and postfix notation have three common features 前缀和后缀表示法有三项公共特征:
In postfix notation, the operator comes after its operands 在后缀表示法中,操作符位于操作数后面。
postfix notation is also known as 后缀表示法也称
Write the following in normal non-postfix notation, and simplify them if you can 以通常(不带后缀)的表示法编写以下代码,如果可以,则简化它们:
It does not convert infix expressions to postfix notation; rather, it evaluates the infix expression directly 不是把中缀表达式转换为后缀表示法;恰恰相反,它对中缀表达式直接求值。
In postfix notation, the need for parentheses is eliminated and the priority of the operators is no longer relevant 在后缀表达式中,不需要括号,而且操作符的优先级也不再起作用了。
Infix notation is a common way of writing expressions, while prefix and postfix notations are primarily used in computer science 中缀表示法是书写表达式的常见方式,而前缀和后缀表示法主要用于计算机科学领域。
To convert an expression in an infix expression to its equivalent in postfix notation, we must know the precedence and associativity of operators 要把表达式从中缀表达式的形式转换成用后缀表示法表示的等价表达式,必须了解操作符的优先级和结合性。